const mongoose = require('mongoose')
const Schema = mongoose.Schema

const musicSchema = new Schema({
  title: {
    type: String,
    required: true
  },
  artist: {
    type: String,
    required: true
  },
  cover: String,
  lyric: String,
  src: {
    type: String,
    required: true
  }
})

const Music = mongoose.model('Music', musicSchema)
module.exports = Music
